import request from '@/utils/request';

// 组织架构
export function getSysStructsTreeApi() {
  return request({
    url: process.env.VUE_APP_SYS_SERVICE + 'api/sysStruct/getSysStructsTree',
    method: 'get'
  });
}

// 根据组织获取列表
export function getSysStructsListApi(postBody) {
  return request({
    url: process.env.VUE_APP_SYS_SERVICE + 'api/sysStruct/getSysStructListByPage',
    method: 'post',
    data: postBody
  })
}

// 删除组织
export function deleteSelectedDepartmentApi(ids) {
  return request({
    url: process.env.VUE_APP_SYS_SERVICE + 'api/sysStruct/deleteByList',
    method: 'post',
    data: {
      keyValues: ids
    }
  });
}
